using System.Collections.Generic;
using UnityEngine;

[CreateAssetMenu(fileName = "New SkillDataBase", menuName = "DataBase/Skill")]
public class SkillDataBase : ScriptableObject
{
    public List<SkillData> skills;
}

[System.Serializable]
public class SkillData
{
    [HideInInspector] public GameObject owner;

    public int id;
    public string name;
    public string description;
    public string iconName;
    public string prefabName;

    [Header("技能属性")]
    public float damage;
    public float cd;
    public float costMP;
    public float durationTime;
    public float triggerInterval;
    public int level;

    [Header("攻击检测")]
    public float attackCheckRange;
    public float attackCheckAngle;
    public AttackType attackType;
    public List<string> attckTargetTags;
    public LayerMask checkLayer;

    [Header("部署方式")]
    public DeployerType deployerType;

    [Header("释放效果")]
    public List<string> releaseImpact;
    public float lunachForce;
    public Vector2 moveDirection;
    public float moveDistance;

    [Header("触发方式")]
    public TriggerType triggerType;

    [Header("触发效果")]
    public SelectType selectType;
    public List<ImpactType> impactType;

    [Header("销毁方式")]
    public List<DisappearType> disappearType;

}
